package k2_oop.p2_inheritAndPolymorphic.demo07;

public class TestDemo7 {
    public static void main(String[] args) {

        Animal animal = new Cat();
        Animal animal1 = new Dog();
        Animal animal2 = new Eagle();

        animal.eat();
        animal1.eat();
        animal2.eat();

        ((Cat)animal).catchMouse();



    }
}
